import "core-js/es6/map";
import "core-js/es6/set";

import React from "react";
import dva from "dva";
import createHistory from "history/createBrowserHistory";
import createLoading from "dva-loading";

// 1. Initialize
const app = dva({
    history: createHistory(),
});

// 2. Plugins
// app.use({});
app.use(createLoading());

// 3. Model
// app.model(require('./models/example'));

// 4. Router
app.router(require('./router').default);

// 5. Start
app.start('#root');
